import request from '@/utils/request'

export function listFightGoodsInfo(query) {
  return request({
    url: '/api/adminBiz/fightGroup/goodsInfo/list',
    method: 'post',
    data: query
  })
}

export function addGoodsInfo(data) {
  return request({
    url: '/api/adminBiz/fightGroup/goodsInfo/add',
    method: 'post',
    data: data
  })
}

export function deleteGoodsInfo(data) {
  return request({
    url: '/api/adminBiz/fightGroup/goodsInfo/delete',
    method: 'post',
    data: data
  })
}

export function updateGoodsInfo(data) {
  return request({
    url: '/api/adminBiz/fightGroup/goodsInfo/update',
    method: 'post',
    data: data
  })
}

export function uploadGoodsImg(data) {
  return request({
    url: '/api/adminBiz/fightGroup/goodsInfo/addPic',
    method: 'post',
    data: data
  })
}

export function deleteGoodsImg(data) {
  return request({
    url: '/api/adminBiz/fightGroup/goodsInfo/deletePic',
    method: 'post',
    data: data
  })
}
